﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/JAFagus.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Indeco.G24.Website.Default" Title="G24 - Thị trường trong tầm tay " %>

<%@ Register Src="UserControls/BangGiaSanPham.ascx" TagName="BangGiaSanPham" TagPrefix="G24" %>
<%@ Register Src="UserControls/TinTucMoi.ascx" TagName="TinTucMoi" TagPrefix="G24" %>
<%@ Register Src="UserControls/DanhMucSanPham.ascx" TagName="DanhMucSanPham" TagPrefix="G24" %>
<%@ Register Src="~/UserControls/Login.ascx" TagName="Login" TagPrefix="G24" %>

<asp:Content ID="ContentMain" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" style="padding-left:2px; width:220px;">                   
    <G24:DanhMucSanPham ID="DanhMucSanPham1" runat="server" />
    <G24:TinTucMoi id="TinTucMoi1" runat="server" />
</td>
<td align="center" valign="top" style="">                   
    <G24:BangGiaSanPham ID="BangGiaSanPham1" runat="server" />

</td>
<td align="right" valign="top" style="padding-right:2px; width:180px;">      
    <G24:Login id="loginControl" runat="server" />
</td>
</tr>
</table>

   
    <%  
        Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
        Response.Write("function Toggle(node,img)");
        Response.Write("{");
        Response.Write("var displayItem = document.getElementById(node);");
        Response.Write("var displayImg = document.getElementById(img);");
        Response.Write("if (displayItem.style.display == 'none')");
        Response.Write("{");
        Response.Write("displayImg.src = \"" + ResolveClientUrl("~/") + "Images/Minimize.png\";");
        Response.Write("displayImg.width = 15;");
        Response.Write("displayItem.style.display = '';");
        Response.Write("}");
        Response.Write("else");
        Response.Write("{");
        Response.Write("displayImg.src = \"" + ResolveClientUrl("~/") + "Images/Restores.png\";");
        Response.Write("displayImg.width = 15;");
        Response.Write("displayItem.style.display = 'none';");
        Response.Write("}");
        Response.Write("}");
        Response.Write("</script>"); 
    %>
 </asp:Content>

